<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GVolumeMonitor</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GIO Reference Manual">
<link rel="up" href="volume_mon.html" title="Volumes and Drives">
<link rel="prev" href="volume_mon.html" title="Volumes and Drives">
<link rel="next" href="GVolume.html" title="GVolume">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="pt01.html" title="Part&#160;I.&#160;GIO Overview">
<link rel="chapter" href="ch01.html" title="Introduction">
<link rel="chapter" href="ch02.html" title="Compiling GIO applications">
<link rel="chapter" href="ch03.html" title="Running GIO applications">
<link rel="chapter" href="gio-extension-points.html" title="Extending GIO">
<link rel="part" href="pt02.html" title="Part&#160;II.&#160;API Reference">
<link rel="chapter" href="file_ops.html" title="File Operations">
<link rel="chapter" href="file_mon.html" title="File System Monitoring">
<link rel="chapter" href="async.html" title="Asynchronous I/O">
<link rel="chapter" href="streaming.html" title="Streaming I/O">
<link rel="chapter" href="types.html" title="File types and applications">
<link rel="chapter" href="volume_mon.html" title="Volumes and Drives">
<link rel="chapter" href="icons.html" title="Icons">
<link rel="chapter" href="utils.html" title="Utilities">
<link rel="chapter" href="extending.html" title="Extending GIO">
<link rel="part" href="migrating.html" title="Part&#160;III.&#160;Migrating to GIO">
<link rel="chapter" href="ch14.html" title="Migrating from POSIX to GIO">
<link rel="chapter" href="ch15.html" title="Migrating from GnomeVFS to GIO">
<link rel="chapter" href="gio-hierarchy.html" title="Object Hierarchy">
<link rel="index" href="ix01.html" title="Index">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="volume_mon.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="volume_mon.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIO Reference Manual</th>
<td><a accesskey="n" href="GVolume.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2786359" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2868172" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id2868065" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id2868089" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GVolumeMonitor"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2786359"></a><span class="refentrytitle">GVolumeMonitor</span>
</h2>
<p>GVolumeMonitor &#8212; Volume Monitor</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gio/gio.h&gt;


                    <a class="link" href="GVolumeMonitor.html#GVolumeMonitor-struct">GVolumeMonitor</a>;
#define             <a class="link" href="GVolumeMonitor.html#G-VOLUME-MONITOR-EXTENSION-POINT-NAME:CAPS">G_VOLUME_MONITOR_EXTENSION_POINT_NAME</a>
<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a>*     <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get">g_volume_monitor_get</a>                (void);
<a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*              <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-connected-drives">g_volume_monitor_get_connected_drives</a>
                                                        (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);
<a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*              <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-volumes">g_volume_monitor_get_volumes</a>        (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);
<a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*              <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-mounts">g_volume_monitor_get_mounts</a>         (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);
<a class="link" href="GVolume.html" title="GVolume">GVolume</a>*            <a class="link" href="GVolumeMonitor.html#g-volume-monitor-adopt-orphan-mount">g_volume_monitor_adopt_orphan_mount</a> (<a class="link" href="GMount.html" title="GMount">GMount</a> *mount);
<a class="link" href="GMount.html" title="GMount">GMount</a>*             <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-mount-for-uuid">g_volume_monitor_get_mount_for_uuid</a> (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                         const char *uuid);
<a class="link" href="GVolume.html" title="GVolume">GVolume</a>*            <a class="link" href="GVolumeMonitor.html#g-volume-monitor-get-volume-for-uuid">g_volume_monitor_get_volume_for_uuid</a>
                                                        (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                         const char *uuid);


</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2868065"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----GVolumeMonitor
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2868089"></a><h2>Signals</h2>
<pre class="synopsis">

  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-drive-changed">drive-changed</a>"                                  : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-drive-connected">drive-connected</a>"                                : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-drive-disconnected">drive-disconnected</a>"                             : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-mount-added">mount-added</a>"                                    : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-mount-changed">mount-changed</a>"                                  : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-mount-pre-unmount">mount-pre-unmount</a>"                              : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-mount-removed">mount-removed</a>"                                  : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-volume-added">volume-added</a>"                                   : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-volume-changed">volume-changed</a>"                                 : Run Last
  "<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-volume-removed">volume-removed</a>"                                 : Run Last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2868172"></a><h2>Description</h2>
<p>
<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> is for listing the user interesting devices and volumes
on the computer. In other words, what a file selector or file manager
would show in a sidebar.</p>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="id2868202"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2868212"></a><h3>
<a name="GVolumeMonitor-struct"></a>GVolumeMonitor</h3>
<a class="indexterm" name="id2868224"></a><pre class="programlisting">typedef struct _GVolumeMonitor GVolumeMonitor;</pre>
<p>
A Volume Monitor that watches for volume events.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2868249"></a><h3>
<a name="G-VOLUME-MONITOR-EXTENSION-POINT-NAME:CAPS"></a>G_VOLUME_MONITOR_EXTENSION_POINT_NAME</h3>
<a class="indexterm" name="id2868261"></a><pre class="programlisting">#define G_VOLUME_MONITOR_EXTENSION_POINT_NAME "gio-volume-monitor"
</pre>
<p>
Extension point for volume monitor functionality.
See Extending GIO.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2868287"></a><h3>
<a name="g-volume-monitor-get"></a>g_volume_monitor_get ()</h3>
<a class="indexterm" name="id2868298"></a><pre class="programlisting"><a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a>*     g_volume_monitor_get                (void);</pre>
<p>
Gets the volume monitor used by gio.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a reference to the <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> used by gio. Call
   <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a> when done with it.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2868354"></a><h3>
<a name="g-volume-monitor-get-connected-drives"></a>g_volume_monitor_get_connected_drives ()</h3>
<a class="indexterm" name="id2868368"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*              g_volume_monitor_get_connected_drives
                                                        (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);</pre>
<p>
Gets a list of drives connected to the system.
</p>
<p>
The returned list should be freed with <a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"
><code class="function">g_list_free()</code></a>, after
its elements have been unreffed with <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a <a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> of connected <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>s
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2868478"></a><h3>
<a name="g-volume-monitor-get-volumes"></a>g_volume_monitor_get_volumes ()</h3>
<a class="indexterm" name="id2868490"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*              g_volume_monitor_get_volumes        (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);</pre>
<p>
Gets a list of the volumes on the system.
</p>
<p>
The returned list should be freed with <a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"
><code class="function">g_list_free()</code></a>, after
its elements have been unreffed with <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a <a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> of <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>s.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2881170"></a><h3>
<a name="g-volume-monitor-get-mounts"></a>g_volume_monitor_get_mounts ()</h3>
<a class="indexterm" name="id2881182"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*              g_volume_monitor_get_mounts         (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor);</pre>
<p>
Gets a list of the mounts on the system.
</p>
<p>
The returned list should be freed with <a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"
><code class="function">g_list_free()</code></a>, after
its elements have been unreffed with <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a <a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> of <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>s
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2881277"></a><h3>
<a name="g-volume-monitor-adopt-orphan-mount"></a>g_volume_monitor_adopt_orphan_mount ()</h3>
<a class="indexterm" name="id2881290"></a><pre class="programlisting"><a class="link" href="GVolume.html" title="GVolume">GVolume</a>*            g_volume_monitor_adopt_orphan_mount (<a class="link" href="GMount.html" title="GMount">GMount</a> *mount);</pre>
<p>
This function should be called by any <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>
implementation when a new <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> object is created that is not
associated with a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> object. It must be called just before
emitting the <em class="parameter"><code>mount_added</code></em> signal.
</p>
<p>
If the return value is not <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, the caller must associate the
returned <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> object with the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>. This involves returning
it in it's <a class="link" href="GMount.html#g-mount-get-volume"><code class="function">g_mount_get_volume()</code></a> implementation. The caller must
also listen for the "removed" signal on the returned object
and give up it's reference when handling that signal
</p>
<p>
Similary, if implementing <a class="link" href="GVolumeMonitor.html#g-volume-monitor-adopt-orphan-mount"><code class="function">g_volume_monitor_adopt_orphan_mount()</code></a>,
the implementor must take a reference to <em class="parameter"><code>mount</code></em> and return it in
it's <a class="link" href="GVolume.html#g-volume-get-mount"><code class="function">g_volume_get_mount()</code></a> implemented. Also, the implementor must
listen for the "unmounted" signal on <em class="parameter"><code>mount</code></em> and give up it's
reference upon handling that signal.
</p>
<p>
There are two main use cases for this function.
</p>
<p>
One is when implementing a user space file system driver that reads
blocks of a block device that is already represented by the native
volume monitor (for example a CD Audio file system driver). Such
a driver will generate it's own <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> object that needs to be
assoicated with the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> object that represents the volume.
</p>
<p>
The other is for implementing a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> whose sole purpose
is to return <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> objects representing entries in the users
"favorite servers" list or similar.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>mount</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> object to find a parent for
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> object that is the parent for <em class="parameter"><code>mount</code></em> or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
if no wants to adopt the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2881520"></a><h3>
<a name="g-volume-monitor-get-mount-for-uuid"></a>g_volume_monitor_get_mount_for_uuid ()</h3>
<a class="indexterm" name="id2881534"></a><pre class="programlisting"><a class="link" href="GMount.html" title="GMount">GMount</a>*             g_volume_monitor_get_mount_for_uuid (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                         const char *uuid);</pre>
<p>
Finds a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> object by it's UUID (see <a class="link" href="GMount.html#g-mount-get-uuid"><code class="function">g_mount_get_uuid()</code></a>)</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uuid</code></em>&#160;:</span></p></td>
<td> the UUID to look for
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if no such mount is available.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2881642"></a><h3>
<a name="g-volume-monitor-get-volume-for-uuid"></a>g_volume_monitor_get_volume_for_uuid ()</h3>
<a class="indexterm" name="id2881655"></a><pre class="programlisting"><a class="link" href="GVolume.html" title="GVolume">GVolume</a>*            g_volume_monitor_get_volume_for_uuid
                                                        (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                         const char *uuid);</pre>
<p>
Finds a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> object by it's UUID (see <a class="link" href="GVolume.html#g-volume-get-uuid"><code class="function">g_volume_get_uuid()</code></a>)</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uuid</code></em>&#160;:</span></p></td>
<td> the UUID to look for
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if no such volume is available.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2881767"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id2881776"></a><h3>
<a name="GVolumeMonitor-drive-changed"></a>The <code class="literal">"drive-changed"</code> signal</h3>
<a class="indexterm" name="id2881791"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GDrive.html" title="GDrive">GDrive</a>         *drive,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a drive changes.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>drive</code></em>&#160;:</span></p></td>
<td> the drive that changed
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2881875"></a><h3>
<a name="GVolumeMonitor-drive-connected"></a>The <code class="literal">"drive-connected"</code> signal</h3>
<a class="indexterm" name="id2881890"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GDrive.html" title="GDrive">GDrive</a>         *drive,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a drive is connected to the system.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>drive</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> that was connected.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2881981"></a><h3>
<a name="GVolumeMonitor-drive-disconnected"></a>The <code class="literal">"drive-disconnected"</code> signal</h3>
<a class="indexterm" name="id2881996"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GDrive.html" title="GDrive">GDrive</a>         *drive,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a drive is disconnected from the system.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>drive</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> that was disconnected.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2882087"></a><h3>
<a name="GVolumeMonitor-mount-added"></a>The <code class="literal">"mount-added"</code> signal</h3>
<a class="indexterm" name="id2882100"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GMount.html" title="GMount">GMount</a>         *mount,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a mount is added.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mount</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> that was added.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2882190"></a><h3>
<a name="GVolumeMonitor-mount-changed"></a>The <code class="literal">"mount-changed"</code> signal</h3>
<a class="indexterm" name="id2882205"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GMount.html" title="GMount">GMount</a>         *mount,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a mount changes.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mount</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> that changed.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2882296"></a><h3>
<a name="GVolumeMonitor-mount-pre-unmount"></a>The <code class="literal">"mount-pre-unmount"</code> signal</h3>
<a class="indexterm" name="id2882310"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GMount.html" title="GMount">GMount</a>         *mount,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a mount is about to be removed.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mount</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> that is being unmounted.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2882402"></a><h3>
<a name="GVolumeMonitor-mount-removed"></a>The <code class="literal">"mount-removed"</code> signal</h3>
<a class="indexterm" name="id2882416"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GMount.html" title="GMount">GMount</a>         *mount,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a mount is removed.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mount</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> that was removed.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2882507"></a><h3>
<a name="GVolumeMonitor-volume-added"></a>The <code class="literal">"volume-added"</code> signal</h3>
<a class="indexterm" name="id2882520"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GVolume.html" title="GVolume">GVolume</a>        *volume,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a mountable volume is added to the system.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> that was added.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2882612"></a><h3>
<a name="GVolumeMonitor-volume-changed"></a>The <code class="literal">"volume-changed"</code> signal</h3>
<a class="indexterm" name="id2882626"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GVolume.html" title="GVolume">GVolume</a>        *volume,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when mountable volume is changed.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> that changed.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2882717"></a><h3>
<a name="GVolumeMonitor-volume-removed"></a>The <code class="literal">"volume-removed"</code> signal</h3>
<a class="indexterm" name="id2882732"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a> *volume_monitor,
                                                        <a class="link" href="GVolume.html" title="GVolume">GVolume</a>        *volume,
                                                        <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)           : Run Last</pre>
<p>
Emitted when a mountable volume is removed from the system.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume_monitor</code></em>&#160;:</span></p></td>
<td> The volume monitor emitting the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>volume</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> that was removed.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2882825"></a><h2>See Also</h2>
<a class="link" href="GFileMonitor.html" title="GFileMonitor"><span class="type">GFileMonitor</span></a>
</div>
<div class="refsect1" lang="en">
<a name="id2882838"></a><div class="refsect2" lang="en"><a name="id2882839"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id2882840"></a></div>
</div>
</div>
</body>
</html>
